package com.oreilly.ez.repo;

import com.oreilly.ez.entity.EzDetail;
import com.oreilly.ez.entity.EzIndex;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import java.util.List;


public interface EzDetailRepo extends JpaRepository<EzDetail, Integer>{


    @Query("select d from EzDetail  d where d.ezIndex = :index")
    List<EzDetail> findByIndex(@Param("index") EzIndex index);
}
